package com.platform.service.impl;

import com.platform.dao.LotterySignDao;
import com.platform.entity.LotterySignEntity;
import com.platform.service.LotterySignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 抽奖配置Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-04-17 19:26:44
 */
@Service("lotterySignService")
public class LotterySignServiceImpl implements LotterySignService {
    @Autowired
    private LotterySignDao lotteryDao;

    @Override
    public LotterySignEntity queryObject(Integer id) {
        return lotteryDao.queryObject(id);
    }

    @Override
    public List<LotterySignEntity> queryList(Map<String, Object> map) {
        return lotteryDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return lotteryDao.queryTotal(map);
    }

    @Override
    public int save(LotterySignEntity lottery) {
        return lotteryDao.save(lottery);
    }

    @Override
    public int update(LotterySignEntity lottery) {
        return lotteryDao.update(lottery);
    }

    @Override
    public int delete(Integer id) {
        return lotteryDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return lotteryDao.deleteBatch(ids);
    }
}
